package com.lwm.mapper;

import com.lwm.domain.ProjectMaintain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目维护数据层
 */
public interface ProjectMaintainMapper {

    /**
     * 插入
     *
     * @param projectMaintain 项目维护
     * @return int
     */
    int insert(ProjectMaintain projectMaintain);

    /**
     * 删除
     *
     * @param ids id
     * @return int
     */
    int delete(@Param("ids") List<Long> ids);

    /**
     * 更新
     *
     * @param projectMaintain 项目维护
     * @return int
     */
    int update(ProjectMaintain projectMaintain);

    /**
     * 查询所有
     *
     * @param projectMaintain 项目维护
     * @return {@link List}<{@link ProjectMaintain}>
     */
    List<ProjectMaintain> selectAll(ProjectMaintain projectMaintain);

    /**
     * 根据id查询
     * @param id id
     * @return {@link ProjectMaintain}
     */
    ProjectMaintain selectById(Long id);
}
